<template>
    <fieldset>
        <legend>父组件</legend>
        <h1 >{{msg}}</h1>
        <Child  @receive="get"></Child>
        <Bro></Bro>
    </fieldset>
</template>


<script>
    import Child from './Child'
    import Bro from './Bro'
    export default {
        data(){
            return{
                msg:"父组件的属性",
                gift:"vue从精通到入门"
            }
        },
        components: {
            Child,
            Bro
        },
        methods: {
            get(input){
                console.log(input);
            }
        }
    }
</script>